﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MinerManager.Models
{
	/// <summary>
	/// 矿机算力及温度、风扇信息。
	/// </summary>
	public class MinerHashrateAndTmpFanModel
	{
		/// <summary>
		/// 主币算力
		/// </summary>
		public string FirstTotalHashrate { get; set; }

		/// <summary>
		/// 主币成功数
		/// </summary>
		public string FirstSuccess { get; set; }

		/// <summary>
		/// 主币失败数
		/// </summary>
		public string FirstFailure { get; set; }

		/// <summary>
		/// 辅币算力
		/// </summary>
		public string SecondTotalHashrate { get; set; }

		/// <summary>
		/// 辅币成功数
		/// </summary>
		public string SecondSuccess { get; set; }

		/// <summary>
		/// 辅币失败数
		/// </summary>
		public string SecondFailure { get; set; }

		/// <summary>
		/// 显卡平均温度
		/// </summary>
		public string TempAvg { get; set; }

		/// <summary>
		/// 风扇平均转速
		/// </summary>
		public string FanAvg { get; set; }

		/// <summary>
		/// 每显卡的主币算力
		/// </summary>
		public List<string> FirstHashrate { get { return _firstHashrate; }set { _firstHashrate = value; } }
		List<string> _firstHashrate = new List<string>();

		/// <summary>
		/// 每显卡的辅币算力
		/// </summary>
		public List<string> SecondHashrate { get { return _secondHashrate; }set { _secondHashrate = value; } }
		List<string> _secondHashrate = new List<string>();

		/// <summary>
		/// 每显卡的风扇转速
		/// </summary>
		public List<string> Fans { get { return _fans; } set { _fans = value; } }
		List<string> _fans = new List<string>();

		/// <summary>
		/// 每显卡的显卡温度
		/// </summary>
		public List<string> Temps { get { return _temps; }set { _temps = value; } }
		List<string> _temps = new List<string>();
	}
}
